package com.commons.dbutils.dao;

import javax.sql.DataSource;

public abstract class BaseDAO  {
	
	protected DaoRunner daoRunner = null;
	
	public BaseDAO(){
		this.daoRunner =new DaoRunner();
	}
	public BaseDAO(int readTimeOut,int insertOrUpdateTimeOut,int batchTimeOut){
		this.daoRunner = new DaoRunner(readTimeOut, insertOrUpdateTimeOut, batchTimeOut);
		
	}
	
	public final void setDataSource(DataSource dataSource){
		this.daoRunner.setDataSource(dataSource);
	}
	
	public DaoRunner getDaoRunner() {
		return daoRunner;
	}

	public void setDaoRunner(DaoRunner daoRunner) {
		this.daoRunner = daoRunner;
	}
	
	
}
